home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15962 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.icubed.com!usenet
  2. From: stevejones@ansys.com (Steve Jones)
  3. Newsgroups: comp.lang.c++,comp.os.ms-windows.programmer.tools.mfc
  4. Subject: Re: CFormView and SetWindowText()
  5. Date: 4 Apr 1996 15:48:44 GMT
  6. Organization: Infobahn International, Inc.
  7. Sender: sj2393@ansys.com (Steve Jones)
  8. Message-ID: <4k0r0s$btp@news.icubed.com>
  9. References: <4k0p7i$btp@news.icubed.com>
  10. NNTP-Posting-Host: 192.104.24.222
  11. X-Newsreader: knews 0.9.6
  12.  
  13. In article <4k0p7i$btp@news.icubed.com>,
  14.     stevejones@ansys.com (Steve Jones) writes:
  15. >Using MFC:
  16. >
  17. >I've got an MDI app using a CFormView derived class for the
  18. >views.  I collect data from via controls in this view.  Once
  19. >I get a particular CString datum, m_filename, I try to
  20. >change the view windows caption in the title bar to that
  21. >CString:
  22. >
  23. >SetWindowText(m_filename);
  24. >
  25. >However, nothing happens.  GetWindowText() returns my
  26. >string.  But visually, the change doesn't take effect.  I do
  27. >this sort of thing regularly with dialog windows without any
  28. >trouble.  What am I doing wrong?
  29. >
  30. >steve
  31. >stevejones@ansys.com
  32. >
  33.  
  34. Oops, should have done a SetTitle() in the document instead.
  35.  
  36. Sorry and nevermind.
  37.  
  38. steve
  39.  
  40.